package com.sm.activities;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.sm.R;
import com.sm.bo.Student;

public class ShowStudentActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_show_student);
		
		Student student = getIntent().getExtras().getParcelable("student");
		TextView txtStudent = (TextView) findViewById(R.id.studentInfo);
		txtStudent.setText(student.getName() + "\n" + student.getAdress() + "\n" + student.getSubscriptionDate().toLocaleString() + "\n" + student.getCourses().get(0) + "\n" + student.getCourses().get(1));
	}

}
